import Config from "../common/config";
import axios from "axios";



export const fetchList = (query) =>  axios({
    method: 'post',
    url: Config.backEndUrl+"/machine/getList",
    data: query
  });

export const updateMachineApi = (machine) =>  axios({
    method: 'post',
    url: Config.backEndUrl+"/machine/update",
    data: machine
  });

  export const addMachineApi = (machine) =>  axios({
    method: 'post',
    url: Config.backEndUrl+"/machine/add",
    data: machine
  });



